package cn.rkylin.oms.common.dto;

import java.io.Serializable;

/**
 * 日志DTO
 */
public class DBLog implements Serializable {

    private static final long serialVersionUID = 3495789428475799626L;

    /**
     * 业务Id
     */
    private String bizId;

    /**
     * 标签
     */
    private String tag;

    /**
     * 操作人
     */
    private String user;

    /**
     * 操作时间
     */
    private String operTime;

    /**
     * 操作内容
     */
    private String operation;

    /**
     * 来源平台 oms、rocket等
     */
    private String sourceType;

    /**
     * 详细信息
     */
    private String detail;

    /**
     * log类型 info、error、debug、trace
     */
    private String logType; //

    /**
     * 异常信息
     */
    private String throwable;

    /**
     * 构造方法
     * @param bizId
     * @param tag
     * @param operation
     * @param detail
     */
    public DBLog(String bizId, String operation, String tag, String detail) {
        this.bizId = bizId;
        this.tag = tag;
        this.operation = operation;
        this.detail = detail;
    }

    /**
     * 构造方法
     * @param bizId
     * @param tag
     * @param operation
     * @param detail
     * @param throwable
     */
    public DBLog(String bizId, String operation, String tag, String detail, String throwable) {
        this.bizId = bizId;
        this.tag = tag;
        this.operation = operation;
        this.detail = detail;
        this.throwable = throwable;
    }

    public String getThrowable() {
        return throwable;
    }

    public void setThrowable(String throwable) {
        this.throwable = throwable;

    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
}
